package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2019-11-23
 */
public class AttrName extends Model<AttrName> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 属性名
     */
    private String name;

    /**
     * 属性索引(1,2,3,4,5)，排序用
     */
    private Integer sort;

    private Date time;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AttrName{" +
            "id=" + id +
            ", name=" + name +
            ", sort=" + sort +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
